package com.mcxx.ansync.listener;

import com.mcxx.ansync.annotation.BizEvent;
import com.mcxx.modules.temporary.event.TmpFundPayEvent;
import com.mcxx.modules.temporary.fundpay.service.read.TmpFundPayFamilyReadService;
import com.mcxx.modules.temporary.fundpay.service.read.TmpFundPayMemberReadService;
import com.mcxx.modules.temporary.fundpay.service.write.TmpFundPayFamilyWriteService;
import com.mcxx.modules.temporary.fundpay.service.write.TmpFundPayMemberWriteService;
import com.mcxx.modules.temporary.fundpay.service.write.TmpFundPayWriteService;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;


@Slf4j
@TaTransactional
@Component
@EnableAsync
public class TmpFundPayListener implements ApplicationListener<TmpFundPayEvent> {
    @Autowired
    private  TmpFundPayFamilyReadService tmpFundPayFamilyReadService;
    @Autowired
    private  TmpFundPayMemberReadService tmpFundPayMemberReadService;
    @Autowired
    private TmpFundPayFamilyWriteService tmpFundPayFamilyWriteService;
    @Autowired
    private TmpFundPayMemberWriteService tmpFundPayMemberWriteService;
    @Autowired
    private TmpFundPayWriteService tmpFundPayWriteService;


    @Override
    @BizEvent("标准补发名册事件")
    public void onApplicationEvent(TmpFundPayEvent standFundPayEvent) {
        log.info("标准补发名册信息保存");



        log.info("标准补发名册信息保存结束");
    }


}
